<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

$this->title = ($code ? : '') .($name ? : '错误提示');
?>
<div class="site-error">
    <div class="clearfix" style="height: 5px;"></div>
    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>
    <div class="panel panel-default">
        <div class="panel-body">
            <?= strtolower(YII_ENV) == 'dev' ? nl2br(Html::encode($exception)) : '' ?>
        </div>
    </div>
    <a href="<?=\yii\helpers\Url::previous() ?>" class="btn btn-default"><<返回</a>

</div>
